package com.aha.controller;

import com.aha.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;

@Controller
@RequestMapping("Test")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("")
    @ResponseBody
    public HashMap getTestData(){
        HashMap map = testService.getTestData();
        return map;
    }
}
